/// 相册信息模型
class AlbumInfo {
  final String id;
  final String name;
  final int? assetCount;
  final int? imageCount;
  final int? videoCount;

  const AlbumInfo({
    required this.id,
    required this.name,
    this.assetCount,
    this.imageCount,
    this.videoCount,
  });

  /// 获取有效资产数量（根据过滤条件）
  int getValidCount(bool includePhotos, bool includeVideos) {
    if (includePhotos && includeVideos) {
      return assetCount ?? 0;
    } else if (includePhotos) {
      return imageCount ?? 0;
    } else if (includeVideos) {
      return videoCount ?? 0;
    }
    return 0;
  }

  @override
  String toString() {
    return 'AlbumInfo{id: $id, name: $name, assetCount: $assetCount}';
  }
}
